package com.one.constant;

/**
 * Create on 2022-01-17
 * <p>
 * Author: LiangWei
 * <p>
 * Description: RabbitMQ常量类
 **/
public class RabbitMQConstant {
    /**
     * 主题队列one
     */
    public static final String RABBITMQ_TOPIC_QUEUE_ORDER_ONE = "rabbitmq_topic_queue_order_one";

    /**
     * 主题交换机
     */
    public static final String RABBITMQ_TOPIC_EXCHANGE = "rabbitmq_topic_exchange";

    /**
     * 主题批量路由键
     */
    public static final String RABBITMQ_TOPIC_ROUTING_BATCH = "rabbitmq_topic_routing.*";


    /**
     * 死信队列绑定的普通直连队列的名字
     */
    public static final String RABBITMQ_DIRECT_QUEUE = "q.go";
    /**
     * 普通直连队列交换机
     */
    public static final String RABBITMQ_DIRECT_EXCHANGE = "ex.go";
    /**
     * 普通直连队列路由键
     */
    public static final String RABBITMQ_DIRECT_KEY = "go";


    /**
     * 死信队列的名字
     */
    public static final String RABBITMQ_DIRECT_DLX_QUEUE = "q.go.dlx";
    /**
     * 死信队列交换机
     */
    public static final String RABBITMQ_DIRECT_DLX_EXCHANGE = "ex.go.dlx";
    /**
     * 死信队列交路由键
     */
    public static final String RABBITMQ_DIRECT_DLX_KEY = "go.dlx";

    /**
     * 订阅商品库存消息队列
     */
    public static final String RABBITMQ_DIRECT_QUEUE_PRODUCT = "QUEUE_PRODUCT";

    /**
     * 订阅商品库存交换机
     */
    public static final String RABBITMQ_DIRECT_EXCHANGE_PRODUCT = "EXCHANGE_PRODUCT";

    /**
     * 订阅商品库存redis前缀
     */
    public static final String SUBSCRIBE_PRODUCT_PREFIX = "SUBSCRIBE_PRODUCT";

    /**
     *  订阅商品库存路由器
     */
    public static final String RABBITMQ_DIRECT_ROUTING_PRODUCT = "ROUTING_PRODUCT";
}
